package org.collegegeek.android;

import android.app.Activity;
import android.app.AlertDialog;
import android.app.AlertDialog.Builder;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;

public class WarWalker extends Activity {
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		final Button button = (Button) findViewById(R.id.Button01);

		button.setOnClickListener(new View.OnClickListener() {
			public void onClick(View v) {
				runMainLoop();
			}
		});
	}

	/**
	 * 
	 */
	public void runMainLoop() {
		final AlertDialog.Builder b = new Builder(this);
		AlertDialog a = b.create();
		a.setTitle("Walking");
		a.setMessage("WarWalker is now looking for networks");
		a.setCancelable(true);
		a.setCanceledOnTouchOutside(true);
		a.show();
	}
}